package com.gopay.common.cps.dao.aggregatepayment;

import com.gopay.common.base.dao.BaseDAO;
import com.gopay.common.domain.aggregatepayment.ApContractInfo;

import java.util.List;

/**
 * @author Chenyu Li
 * @description 聚合支付合同查询DAO
 * @date 2018/1/2
 * Copyright (c) 2017. www.gopay.com.cn Inc.All rights reserved.
 */
public interface ApContractInfoQueryDAO extends BaseDAO<ApContractInfo, String> {

    List<ApContractInfo> getInfoByCustId(String custId,int pageNo , int pageSize);

    int getInfoCountByCustId(String custId);

    List<ApContractInfo> getInfoByCode(String code);

    /**
     * 根据合同审核状态和合同到期时间查询合同
     * @param autoSign
     * @param status
     * @param endDate
     * @return
     */
    List<ApContractInfo> getInfoByStatusAndEndDate(String autoSign, String status, String endDate);

    public int getApContractInfoCount(ApContractInfo apContractInfo);

    public ApContractInfo getApContractInfo(ApContractInfo apContractInfo);

}
